<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="book.mhash.html">« Mhash</a></li>
      <li style="float: right;"><a href="mhash.setup.html">安装/配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.mhash.html">Mhash</a></li>
    <li>简介</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="intro.mhash" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   These functions are intended to work with <a href="http://mhash.sourceforge.net/" class="link external">&raquo;&nbsp;mhash</a>. Mhash can be used to create checksums,
   message digests, message authentication codes, and more.
  </p>
  <p class="para">
   This is an interface to the mhash library. Mhash supports a wide
   variety of hash algorithms such as MD5, SHA1, GOST, and many
   others. For a complete list of supported hashes, refer to the
   <a href="mhash.constants.html" class="link">constants page</a>. The general rule is that you can access
   the hash algorithm from PHP with <strong><code>MHASH_hashname</code></strong>. For example, to
   access TIGER you use the PHP constant <strong><code>MHASH_TIGER</code></strong>.
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    This extension is obsoleted by <a href="book.hash.html" class="link">Hash</a>.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    As of PHP 7.0.0 the Mhash extension has been fully integrated into the <a href="book.hash.html" class="link">Hash</a> extension. Therefore, it is no longer
    possible to detect Mhash support with <span class="function"><a href="function.extension-loaded.html" class="function">extension_loaded()</a></span>;
    use <span class="function"><a href="function.function-exists.html" class="function">function_exists()</a></span> instead. Furthermore, Mhash is no
    longer reported by <span class="function"><a href="function.get-loaded-extensions.html" class="function">get_loaded_extensions()</a></span> and related
    features.
   </p>
  </p></blockquote>
 </div></div></div></body></html>